<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  // 封装

  // function sum(a,b){
  //   return a + b;
  // }


  // console.log(sum(3, 6));
  
  // alert(sum(2, 4));

  // document.write(sum(1, 3));

  // result.value = sum(3, 7);


  // alert( parseInt( "3.1415" ) );

  // console.log( parseInt( 365.789 ) );



  function fn(){
    console.log(1)
    return function(){ 1 }, "hello", 123;
    console.log(2)
    return "world"
    console.log(3)
    return 456
    console.log(4)
  }

  console.log( fn() );
  
</script>
</html>